package Controller;

import Backend.GeneralDatabase;
import Entitys.DiseaseItem;
import view.Interface.window.PublicFatherWindow;
import view.MainWindow.AdminMainWindow;
import view.MainWindow.UserMainWindow;

public class AdminController {
    String username;
    GeneralDatabase database;
    final PublicFatherWindow adminWindowOpener;


    public AdminController(GeneralDatabase database, String username) {
        this.database = database;
        this.username = username;
        this.adminWindowOpener = new AdminMainWindow(this);
    }

    public void SubmitNewItem(DiseaseItem newItem){
        database.adder.Item(username,newItem);
    }
    public void DeleteItem(DiseaseItem oldItem){
        database.deleter.Item(username,oldItem);
    }
    public void modifyItem(DiseaseItem oldItem,DiseaseItem newItem){
        database.modifier.Item(username,oldItem,newItem);
    }



    public void start(){
        
    }
}
